package com.ayu.shortlink.engine.common.constant;

import lombok.Data;

/**
 * RocketMQ的常量
 */
@Data
public class RocketMQConstant {
    /**
     * 立刻执行任务的主题
     */
    public final static String TOPIC_EXECUTOR_IMMEDIATELY_TASK = "short-link_rocketmq-topic_executor-immediately-task";

    /**
     * 执行任务的消费者组(主要负责读Excel表格)
     */
    public final static String GROUP_EXECUTOR_IMMEDIATELY_TASK = "short-link_rocketmq-group_executor-immediately-task";

    /**
     * 执行刷盘的主题
     */
    public final static String TOPIC_ACTUALLY_EXECUTOR_TASK = "short-link_rocketmq-topic_actually-executor-task";

    /**
     * 执行刷盘的消费者组
     */
    public final static String GROUP_ACTUALLY_EXECUTOR_TASK = "short-link_rocketmq-group_actually-executor-task";

    /**
     * 延迟执行任务的主题
     */
    public final static String TOPIC_EXECUTOR_DELAY_TASK = "short-link_rocketmq-topic_executor-delay-task";

    /**
     * 延迟执行任务改变状态消费者组
     */
    public final static String GROUP_DELAY_EXECUTOR_TASK_STATUS_CHANGE = "short-link_rocketmq-group_delay-executor-task-status-change";

    /**
     * 定时删除用户优惠券的主题
     */
    public final static String TOPIC_USER_COUPON_ON_TIME_CLOSE = "short-link_rocketmq-topic_user-coupon-on-time-close";

    /**
     * 定时删除用户优惠券的消费者组
     */
    public final static String GROUP_USER_COUPON_ON_TIME_CLOSE = "short-link_rocketmq-group_user-coupon-on-time-close";

    /**
     * 定时提醒用户优惠券开抢提醒的主题
     */
    public final static String TOPIC_COUPON_REMIND_ON_TIME = "short-link_rocketmq-topic_coupon-remind-on-time";

    /**
     * 定时提醒用户优惠券开抢提醒的主题V2
     */
    public final static String TOPIC_COUPON_REMIND_ON_TIME_V2 = "short-link_rocketmq-topic_coupon-remind-on-time-v2";

    /**
     * 定时提醒用户优惠券开枪消费者组
     */
    public final static String GROUP_COUPON_REMIND_ON_TIME = "short-link_rocketmq-group_coupon-remind-on-time";

    /**
     * 定时提醒用户优惠券开枪消费者组V2
     */
    public final static String GROUP_COUPON_REMIND_ON_TIME_V2 = "short-link_rocketmq-group_coupon-remind-on-time-v2";

    /**
     * 兑换优惠券主题
     */
    public final static String TOPIC_TRANSACTION_REDEEM_COUPON = "short-link_rocketmq-topic_coupon-transaction-redeem-coupon";

    /**
     * 兑换优惠券消费者组
     */
    public final static String GROUP_TRANSACTION_REDEEM_COUPON = "short-link_rocketmq-group_coupon-transaction-redeem-coupon";

    /**
     * 通知各engine服务器去删除空缓存的主题
     */
    public final static String TOPIC_COUPON_DELETE_EMPTY_CACHE = "short-link_rocketmq-topic_coupon-delete-empty-cache";

    /**
     * 通知各engine服务器去删除空缓存的消费者组
     */
    public final static String GROUP_COUPON_DELETE_EMPTY_CACHE = "short-link_rocketmq-group_coupon-delete-empty-cache";

    /**
     * 用户获取优惠券的主题
     */
    public final static String TOPIC_USER_GAIN_COUPON = "short-link_rocketmq-topic_user-gain-coupon";
}
